package Week03.Day02.Practice1;
/**
 * 全能运动员类
 */
public class AllAthlete extends Athlete implements Sports {
    public AllAthlete(){}
    public AllAthlete(String name,int age){
        super(name,age);
    }
    @Override
    public void dive() {
        System.out.println(this.getName() + "擅长游泳");
    }

    @Override
    public void sprint() {
        System.out.println(this.getName() + "擅长短跑");
    }

    @Override
    public void shoot() {
        System.out.println(this.getName() + "擅长射击");
    }

}
